package com.example.invalidatetest;

import android.util.Log;

public class LocationTrackerTest {
	
	int height_deviation = 0;
	int width_deviation = 0;
	
	
	int scaled_height_deviation = 0;
	int scaled_width_deviation = 0;
	
	//SIZE OF CANVAS VISIBLE TO USE IS 720 WIDTH AND 1184 HEIGHT
	
	
	int bounds = 500; //NUMBER OF MERCATOR UNITS IN ALL DIRECTIONS FROM CENTRE
	

	public void movedLeft(){
		width_deviation = width_deviation - 100;
		if(Math.abs(scaled_width_deviation) >= bounds){
			Log.d("Location Tracker", "bounds deviated");
		}
		
					}
	
	public void movedRight(){
		width_deviation = width_deviation + 100;
		if(Math.abs(scaled_width_deviation) >= bounds){
			Log.d("Location Tracker", "bounds deviated");
		}
					}
	
	public void movedUp(){
		height_deviation = height_deviation + 100;
		if(Math.abs(scaled_height_deviation) >= bounds){
			Log.d("Location Tracker", "bounds deviated");
		}
		
					}
	
	public void movedDown(){
		height_deviation = height_deviation - 100;
		if(Math.abs(scaled_height_deviation) >= bounds){
			Log.d("Location Tracker", "bounds deviated");
		}
					}
	
	public void zoomChanged(){
		
		scaled_height_deviation = (int) (height_deviation * (1/ZoomConstant.scale_factor));
		Log.d("Location Tracker", scaled_height_deviation+" Scaled Deviation");
		
		
		if(ZoomConstant.scale_factor < 0.3){
			//REQUEST LVL3
		}
		else if(ZoomConstant.scale_factor < 0.6){
			//REQUEST LVL2 AND ABOVE
		}
		else{
			//REQUEST LVL1
		}

	}
	

}
